<?php

use Faker\Generator as Faker;

$factory->define(App\Models\Banner::class, function (Faker $faker) {
    $updated_at = $faker->dateTimeThisMonth();
    $created_at = $faker->dateTimeThisMonth($updated_at);
    return [
        'title'=>$faker->name,
        'image'=>$faker->imageUrl(30,30),
        'url'  =>$faker->url,
        'sort' =>1,
        'created_at'=>$created_at,
        'updated_at'=>$updated_at,
    ];
});
